﻿<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title></title>
    <meta name="Upgrade" content="websocket" />
    <meta name="Connection" content="Sec-WebSocket-Key" />
    <meta name="Upgrade" content="websocket" />
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <script src="~/Content/js/index.js"></script>
</head>
<style type="text/css">
    .m {
        width: 500px;
        height: 300px;
        padding: 20px;
        border: 1px solid #ccc;
        overflow: hidden;
    }
</style>

<body>
    <div>
        <a href="javascript:WebSocketTest()">运行 WebSocket</a>
        <a href="javascript:webSocketClose()">关闭WebSocket</a>
    </div>
    <div id="look" class="m">

    </div>
    <input id="userId">
    <input id="message">
    <a href="javascript:send()">单发</a>
    <a href="javascript:sendGroup()">群发</a>
    <a href="javascript:sendGroupA()">群组A</a>
    <a href="javascript:sendGroupB()">群组B</a>
</body>

</html>